const path = require('path');
const resolvePath = dir => path.resolve(__dirname, dir);

module.exports = {
    configureWebpack: {
        output: {
            library: 'singleVue',
            libraryTarget: 'umd' // umd打包，会把bootstrap，mount，unmount都打包到singleVue上，挂在window上
        },
        devServer:{
            port:10000
        }
    },
    chainWebpack: config => {
        // 配置解析别名
        config.resolve.alias
            .set('@', resolvePath('src'))
            .set('@components', resolvePath('src/components'))
            .set('@views', resolvePath('src/views'))
    }
}